<template>
  <div class="panel-warpper">
    <div class="title">
      <div>{{ title }}</div>
      <slot name="btn"></slot>
    </div>
    <el-divider></el-divider>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "标题",
    },
  },
};
</script>

<style lang="less" scoped>
.panel-warpper {
  background-color: #fff;
  border-radius: 5px;
  min-height: 300px;
  box-shadow: 0 0 1px 0;
  .title {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
  }
  .el-divider--horizontal {
    margin: 0;
  }
  .content {
    padding: 10px;
  }
}
</style>